package org.jeecg.modules.complain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecg.common.aspect.annotation.Dict;
import org.jeecg.modules.system.entity.BaseEntity;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.util.List;

/**
 * @Description: 报修基础配置
 * @Author: jeecg-boot
 * @Date:   2019-07-29
 * @Version: V1.0
 */
@Data
@TableName("prj_repair_config")
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="prj_repair_config对象", description="报修基础配置")
public class RepairConfig extends BaseEntity {
    
	/**id*/
	@TableId(type = IdType.UUID)
    @ApiModelProperty(value = "id")
	private String id;
	/**类型 PS005*/
	@Excel(name = "类型 PS005", width = 15)
    @ApiModelProperty(value = "类型 PS005")
	private String repairType;
	/**物业公司id*/
	@Excel(name = "物业公司id", width = 15)
    @ApiModelProperty(value = "物业公司id")
	private String tenantId;
	/**所属部门*/
	@Excel(name = "所属部门", width = 15)
    @ApiModelProperty(value = "所属部门")
   @Dict(dicCode = "id" ,dictTable="sys_depart",dicText="depart_name")
	private String departId;
	/**维修模式: 0普通模式  1抢单模式*/
	@Excel(name = "维修模式: 0普通模式  1抢单模式", width = 15)
	@Dict(dicCode ="pattern" )
    @ApiModelProperty(value = "维修模式: 0普通模式  1抢单模式")
	private Integer repairModel;
	/**接受报修岗位id*/
	@Excel(name = "接受报修岗位id", width = 15)
    @ApiModelProperty(value = "接受报修岗位id")
	@Dict(dictTable = "sys_position",dicText = "name",dicCode = "id")
	private String receivePositionCode;
	/**接受报修岗位名称*/
	@Excel(name = "接受报修岗位名称", width = 15)
    @ApiModelProperty(value = "接受报修岗位名称")
	private String receivePositionName;
	/**派单岗位id*/
	@Excel(name = "派单岗位id", width = 15)
    @ApiModelProperty(value = "派单岗位id")
	private String sendPositionCode;
	/**派单岗位名称*/
	@Excel(name = "派单岗位名称", width = 15)
    @ApiModelProperty(value = "派单岗位名称")
	private String sendPositionName;
	/**是否开启派单岗位 0:不开启(则由接受报修的岗位直接派单)  1:开启*/
	@Excel(name = "是否开启派单岗位 0:不开启(则由接受报修的岗位直接派单)  1:开启", width = 15)
    @ApiModelProperty(value = "是否开启派单岗位 0:不开启(则由接受报修的岗位直接派单)  1:开启")
	@Dict(dicCode = "is_or_not")
	private Integer sendConfigFlg;
	/**处理维修岗位id*/
	@Excel(name = "处理维修岗位id", width = 15)
    @ApiModelProperty(value = "处理维修岗位id")
	private String handlePositionCode;
	/**处理维修岗位名称*/
	@Excel(name = "处理维修岗位名称", width = 15)
    @ApiModelProperty(value = "处理维修岗位名称")
	private String handlePositionName;
	/**创建者*/
	@Excel(name = "创建者", width = 15)
    @ApiModelProperty(value = "创建者")
	private String createBy;
	/**创建时间*/
	@Excel(name = "创建时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间")
	private Date createTime;
	/**更新者*/
	@Excel(name = "更新者", width = 15)
    @ApiModelProperty(value = "更新者")
	private String updateBy;
	/**项目ID*/
	@Excel(name = "项目ID", width = 15)
	@ApiModelProperty(value = "项目ID")
	@Dict(dicCode = "id",dictTable="base_project",dicText="name")
	private String projectId;
	/**更新时间*/
	@Excel(name = "更新时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新时间")
	private Date updateDate;
	/**备注信息*/
	@Excel(name = "备注信息", width = 15)
    @ApiModelProperty(value = "备注信息")
	private String remarks;
	/**删除标记*/
	@Excel(name = "删除标记", width = 15)
    @ApiModelProperty(value = "删除标记")
	private String delFlag;
	@TableField(exist = false)
	private List<String> handlePositionArr;
	@TableField(exist = false)
	private List<String> receivePositionArr;
}
